package org.example;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Hello world!
 *
 */
public class HelloWorld
{
    public static void main( String[] args )
    {
        // 入参还可以是字符串："org.example.HelloWorld"
        Logger logger = LoggerFactory.getLogger(HelloWorld.class);
//        Logger logger = LoggerFactory.getLogger("org.example.HelloWorld");

        logger.info("Hello World");

//        使用root logger
        Logger rootLogger = LoggerFactory.getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME);
        rootLogger.info("root hello");
    }
}
